/*
 * Copyright (c) 2017, www.zm0618.com All Rights Reserved..
 */

package com.light.hessian.exporter.registry.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.env.Environment;


/**
 * Created by zhaojun on 2017/02/17.
 */
public class LocalRegistryConfigParser implements ServiceRegistryConfigParser {

    protected static final Logger logger= LoggerFactory.getLogger(LocalRegistryConfigParser.class);

    @Override
    public ServiceRegistryConfig doParse(ServiceRegistry autoRegister, Environment environment) {
        String nameSpace=autoRegister.getNameSpace();
        LocalRegistryExportConfig config=new LocalRegistryExportConfig();
        config.setRegistryType(RegistryType.local);
        return config;
    }
}
